<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>欢迎使用网上商城</title>
    <link rel="icon" th:href="@{/favicon.ico}" type="image/x-icon"/>
    <link rel="bookmark" th:href="@{/favicon.ico}" type="image/x-icon"/>
    <script src="../../static/js/jquery/jquery-3.6.0.min.js"
            th:src="@{/js/jquery/jquery-3.6.0.min.js}"></script>
    <script src="../../static/js/bootstrap/bootstrap.bundle.js"
            th:src="@{/js/bootstrap/bootstrap.bundle.js}"></script>
    <link rel="stylesheet" href="../../static/css/bootstrap/bootstrap.css"
          th:href="@{/css/bootstrap/bootstrap.css}">
    <style>
        html, body, .container-fluid {
            height: 100%;
        }

        .custom-main {
            height: calc(100% - 56px);
        }

        iframe {
            height: 100%;
            width: 100%;
        }

        .custom-main div ul,
        .custom-main div div {
            height: calc(100% - 16px);
        }

        .custom-main div ul li {
            padding-left: 10px !important;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div class="container-fluid bg-light">
    <div class="row">
        <nav class="navbar navbar-expand-md navbar-dark bg-dark sticky-top">
            <div class="container-fluid">
                <a class="navbar-brand">欢迎使用并夕夕</a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
                        aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav offset-lg-11">
                        <li class="nav-item me-2">
                            <a class="nav-link" href="#">返回用户</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
    <div class="row custom-main">
        <div class="col-md-3">
            <ul class="nav flex-column m-2 bg-white">
                <li class="nav-item">
                    <a class="nav-link disabled" aria-current="page" disabled><strong>分类管理</strong></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" target="content_frame"
                       th:href="www.baidu.com">添加分类</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" target="content_frame"
                       th:href="www.baidu.com">查看分类</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link disabled" href="#"><strong>图书管理</strong></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" target="content_frame"
                       href="">添加图书</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" target="content_frame"
                       href="">查看图书</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link disabled" href="#"><strong>订单管理</strong></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" target="content_frame"
                       href="">已发货订单管理</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" target="content_frame"
                       href="">未发货订单管理</a>
                </li>
            </ul>
        </div>

        <div class="col-md-9">
            <div class="flex-column m-2 bg-white">
                <iframe class="bg-white" name="content_frame" src="./welcome.html"
                        th:src="@{/welcome}"></iframe>
            </div>
        </div>
    </div>
</div>
</body>
</html>